home *** CD-ROM | disk | FTP | other *** search
/ Champak 142 / Volume 142 Oct 17 2011 - Damaged.iso / Games / moko-moko.swf / scripts / frame_3 / DoAction.as < prev   
Text File  |  2011-10-17  |  12KB  |  352 lines

  1. if(true)
  2. {
  3.    if(true)
  4.    {
  5.       ┬º┬ºpush(false);
  6.    }
  7.    if(!┬º┬ºpop())
  8.    {
  9.       if(true)
  10.       {
  11.          if(true)
  12.          {
  13.             ┬º┬ºpush(false);
  14.          }
  15.          if(!┬º┬ºpop())
  16.          {
  17.             CMG_AS2.ScoreSubmitter.gameId = 343;
  18.             CMG_AS2.ScoreSubmitter.gameVersion = "1.0";
  19.             CMG_AS2.ScoreSubmitter.gameValidationCode = "moko769c11b032df2adeefe178ed050f6ac6";
  20.             var select = new Object();
  21.             var sel = true;
  22.             var keyok = true;
  23.             _global.players = 1;
  24.             _global.cheat1 = false;
  25.             _global.cheat2 = false;
  26.             _global.cheat3 = false;
  27.             _global.cheat4 = false;
  28.             if(_global.sndval == undefined)
  29.             {
  30.                _global.sndval = true;
  31.             }
  32.             var enterpressed = false;
  33.             var music = new Sound();
  34.             attachMovie("scenografia","scenclip",200003);
  35.             this.bglevel1.gotoAndStop(1);
  36.             scenclip.gotoAndStop(1);
  37.             scenclip._x = 7;
  38.             scenclip._y = 19;
  39.             restbtn1._alpha = 70;
  40.             music.attachSound("fluffy");
  41.             if(_global.sndval == true)
  42.             {
  43.                music.start(0,2000);
  44.                music.setVolume(100);
  45.             }
  46.             if(_global.sndval == true)
  47.             {
  48.                sndbtn1.gotoAndStop(1);
  49.             }
  50.             else
  51.             {
  52.                sndbtn1.gotoAndStop(3);
  53.             }
  54.             monkey.onPress = function()
  55.             {
  56.                getUrl("http://www.crazymonkeygames.com", "_blank");
  57.             };
  58.             jordant.onPress = function()
  59.             {
  60.                getUrl("http://cappuccino-design.com", "_blank");
  61.             };
  62.             sndbtn1.onPress = function()
  63.             {
  64.                _global.sndval = !_global.sndval;
  65.                if(_global.sndval == true)
  66.                {
  67.                   sndbtn1.gotoAndStop(2);
  68.                   music.start(0,2000);
  69.                   music.setVolume(100);
  70.                }
  71.                if(_global.sndval == false)
  72.                {
  73.                   sndbtn1.gotoAndStop(4);
  74.                   music.stop();
  75.                }
  76.             };
  77.             sndbtn1.onRollOver = function()
  78.             {
  79.                if(_global.sndval == false)
  80.                {
  81.                   sndbtn1.gotoAndStop(4);
  82.                }
  83.                if(_global.sndval == true)
  84.                {
  85.                   sndbtn1.gotoAndStop(2);
  86.                }
  87.             };
  88.             sndbtn1.onRollOut = function()
  89.             {
  90.                if(_global.sndval == false)
  91.                {
  92.                   sndbtn1.gotoAndStop(3);
  93.                }
  94.                if(_global.sndval == true)
  95.                {
  96.                   sndbtn1.gotoAndStop(1);
  97.                }
  98.             };
  99.             opl.onRollOver = function()
  100.             {
  101.                if(select1._currentframe != 1 and _global.sndval == true)
  102.                {
  103.                   snd.gotoAndPlay("select");
  104.                }
  105.                select1.gotoAndStop(1);
  106.                sel = true;
  107.             };
  108.             tpl.onRollOver = function()
  109.             {
  110.                if(select1._currentframe != 2 and _global.sndval == true)
  111.                {
  112.                   snd.gotoAndPlay("select");
  113.                }
  114.                select1.gotoAndStop(2);
  115.                sel = false;
  116.             };
  117.             hsh.onRollOver = function()
  118.             {
  119.                if(select1._currentframe != 3 and _global.sndval == true)
  120.                {
  121.                   snd.gotoAndPlay("select");
  122.                }
  123.                select1.gotoAndStop(3);
  124.                sel = true;
  125.             };
  126.             moregameshit.onRollOver = function()
  127.             {
  128.                if(select1._currentframe != 4 and _global.sndval == true)
  129.                {
  130.                   snd.gotoAndPlay("select");
  131.                }
  132.                select1.gotoAndStop(4);
  133.                sel = false;
  134.             };
  135.             officialsitehit.onRollOver = function()
  136.             {
  137.                if(select1._currentframe != 5 and _global.sndval == true)
  138.                {
  139.                   snd.gotoAndPlay("select");
  140.                }
  141.                select1.gotoAndStop(5);
  142.                sel = true;
  143.             };
  144.             hsh.onPress = function()
  145.             {
  146.                if(_global.sndval == true)
  147.                {
  148.                   snd.gotoAndPlay("enter");
  149.                }
  150.                CMG_AS2.ScoreSubmitter.loadHighScorePage();
  151.             };
  152.             opl.onPress = function()
  153.             {
  154.                if(_global.sndval == true)
  155.                {
  156.                   snd.gotoAndPlay("enter");
  157.                }
  158.                _global.players = select1._currentframe;
  159.                _root.gotoAndStop("inonep");
  160.             };
  161.             tpl.onPress = function()
  162.             {
  163.                if(_global.sndval == true)
  164.                {
  165.                   snd.gotoAndPlay("enter");
  166.                }
  167.                _global.players = select1._currentframe;
  168.                _root.gotoAndStop("intwop");
  169.             };
  170.             moregameshit.onPress = function()
  171.             {
  172.                if(_global.sndval == true)
  173.                {
  174.                   snd.gotoAndPlay("enter");
  175.                }
  176.                getUrl("http://www.crazymonkeygames.com/", "_blank");
  177.             };
  178.             officialsitehit.onPress = function()
  179.             {
  180.                if(_global.sndval == true)
  181.                {
  182.                   snd.gotoAndPlay("enter");
  183.                }
  184.                getUrl("http://www.cappuccino-design.com/mokomoko/", "_blank");
  185.             };
  186.             select.onKeyDown = function()
  187.             {
  188.                if(Key.isDown(17) and Key.isDown(16) and Key.isDown(35))
  189.                {
  190.                   snd.gotoAndPlay("life");
  191.                   _global.cheat1 = true;
  192.                }
  193.                if(Key.isDown(17) and Key.isDown(16) and Key.isDown(36))
  194.                {
  195.                   snd.gotoAndPlay("superball");
  196.                   _global.cheat2 = true;
  197.                }
  198.                if(Key.isDown(17) and Key.isDown(16) and Key.isDown(46))
  199.                {
  200.                   snd.gotoAndPlay("points");
  201.                   _global.cheat3 = true;
  202.                }
  203.                if(Key.isDown(17) and Key.isDown(16) and Key.isDown(45))
  204.                {
  205.                   snd.gotoAndPlay("enlarge");
  206.                   _global.cheat4 = true;
  207.                }
  208.                if(Key.isDown(40) and select1._currentframe == 1 and keyok == true)
  209.                {
  210.                   select1.gotoAndStop(2);
  211.                   if(sel == true and _global.sndval == true)
  212.                   {
  213.                      snd.gotoAndPlay("select");
  214.                   }
  215.                   sel = false;
  216.                   keyok = false;
  217.                }
  218.                if(Key.isDown(40) and select1._currentframe == 2 and keyok == true)
  219.                {
  220.                   select1.gotoAndStop(3);
  221.                   if(sel == false and _global.sndval == true)
  222.                   {
  223.                      snd.gotoAndPlay("select");
  224.                   }
  225.                   sel = true;
  226.                   keyok = false;
  227.                }
  228.                if(Key.isDown(40) and select1._currentframe == 3 and keyok == true)
  229.                {
  230.                   select1.gotoAndStop(4);
  231.                   if(sel == true and _global.sndval == true)
  232.                   {
  233.                      snd.gotoAndPlay("select");
  234.                   }
  235.                   sel = false;
  236.                   keyok = false;
  237.                }
  238.                if(Key.isDown(40) and (select1._currentframe == 4 or select1._currentframe == 5) and keyok == true)
  239.                {
  240.                   select1.gotoAndStop(5);
  241.                   if(sel == false and _global.sndval == true)
  242.                   {
  243.                      snd.gotoAndPlay("select");
  244.                   }
  245.                   sel = true;
  246.                   keyok = false;
  247.                }
  248.                if(Key.isDown(38) and (select1._currentframe == 1 or select1._currentframe == 2) and keyok == true)
  249.                {
  250.                   select1.gotoAndStop(1);
  251.                   if(sel == false and _global.sndval == true)
  252.                   {
  253.                      snd.gotoAndPlay("select");
  254.                   }
  255.                   sel = true;
  256.                   keyok = false;
  257.                }
  258.                if(Key.isDown(38) and select1._currentframe == 3 and keyok == true)
  259.                {
  260.                   select1.gotoAndStop(2);
  261.                   if(sel == true and _global.sndval == true)
  262.                   {
  263.                      snd.gotoAndPlay("select");
  264.                   }
  265.                   sel = false;
  266.                   keyok = false;
  267.                }
  268.                if(Key.isDown(38) and select1._currentframe == 4 and keyok == true)
  269.                {
  270.                   select1.gotoAndStop(3);
  271.                   if(sel == false and _global.sndval == true)
  272.                   {
  273.                      snd.gotoAndPlay("select");
  274.                   }
  275.                   sel = true;
  276.                   keyok = false;
  277.                }
  278.                if(Key.isDown(38) and select1._currentframe == 5 and keyok == true)
  279.                {
  280.                   select1.gotoAndStop(4);
  281.                   if(sel == true and _global.sndval == true)
  282.                   {
  283.                      snd.gotoAndPlay("select");
  284.                   }
  285.                   sel = false;
  286.                   keyok = false;
  287.                }
  288.                _global.players = select1._currentframe;
  289.                if(Key.isDown(13) and keyok == true)
  290.                {
  291.                   if(_global.players == 1)
  292.                   {
  293.                      if(_global.sndval == true and enterpressed == false)
  294.                      {
  295.                         snd.gotoAndPlay("enter");
  296.                      }
  297.                      enterpressed = true;
  298.                      _root.gotoAndStop("inonep");
  299.                   }
  300.                   if(_global.players == 2)
  301.                   {
  302.                      if(_global.sndval == true and enterpressed == false)
  303.                      {
  304.                         snd.gotoAndPlay("enter");
  305.                      }
  306.                      enterpressed = true;
  307.                      _root.gotoAndStop("intwop");
  308.                   }
  309.                   if(_global.players == 3)
  310.                   {
  311.                      keyok = false;
  312.                      if(_global.sndval == true)
  313.                      {
  314.                         snd.gotoAndPlay("enter");
  315.                      }
  316.                      CMG_AS2.ScoreSubmitter.loadHighScorePage();
  317.                   }
  318.                   if(_global.players == 4)
  319.                   {
  320.                      keyok = false;
  321.                      if(_global.sndval == true)
  322.                      {
  323.                         snd.gotoAndPlay("enter");
  324.                      }
  325.                      getUrl("http://www.crazymonkeygames.com/", "_blank");
  326.                   }
  327.                   if(_global.players == 5)
  328.                   {
  329.                      keyok = false;
  330.                      if(_global.sndval == true)
  331.                      {
  332.                         snd.gotoAndPlay("enter");
  333.                      }
  334.                      getUrl("http://www.cappuccino-design.com/mokomoko/", "_blank");
  335.                   }
  336.                }
  337.             };
  338.             select.onKeyUp = function()
  339.             {
  340.                keyok = true;
  341.             };
  342.             Key.addListener(select);
  343.          }
  344.       }
  345.       ┬º┬ºgoto(addr1154);
  346.    }
  347.    ┬º┬ºpush(┬º┬ºpop() + function ┬º\x1b∩┐╜\x02┬º(┬º∩┐╜\x07┬º, ┬º\x01┬º, ┬º\x02\x01┬º, ┬º\x01┬º, ┬º∩┐╜∩┐╜;\x02∩┐╜5\x02@┬º, CMG_AS2, ScoreSubmitter, gameId, gameVersion, ┬º1.0┬º, gameValidationCode, moko769c11b032df2adeefe178ed050f6ac6, select, Object)
  348.    {
  349.    });
  350. }
  351. addr1154:
  352.